package com.xinghanlaser.applet.base.auth.dto;

import com.xinghanlaser.applet.base.auth.entity.ResourceDO;
import com.xinghanlaser.applet.base.auth.entity.RoleDO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Set;

/**
 * @author dym
 * @date 2019-11-19 14:37
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("用户数据传输对象")
public class UserDetailDTO {
    @ApiModelProperty(value = "用户ID")
    private Long id;

    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "用户昵称")
    private String nickName;

    @ApiModelProperty(value = "用户密码")
    private String password;

    @ApiModelProperty(value = "是否启用 默认1代表启用，0代表禁用")
    private Integer isEnable;

    @ApiModelProperty(value = "用户角色列表")
    private Set<RoleDO> roles;

    @ApiModelProperty(value = "用户资源（按钮、接口）列表")
    private Set<ResourceDO> resources;
}
